Used only in tests
